﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/Manage.master" AutoEventWireup="true"
    CodeFile="DecStatus.aspx.cs" Inherits="Manage_DecStatus" Theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../lib/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../lib/css/table.css" rel="stylesheet" type="text/css" />

    <script src="../lib/script/jquery.min.js" type="text/javascript"></script>

    <script src="../lib/script/table.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <div id="info">
            <asp:Literal runat="server" ID="ltlinfo">当前已解密企业 {0} 个，已解密品种 {1} 个，未解密企业 {2} 个，未解密品种 {3}个</asp:Literal>
        </div>
        <div id="query">
            <table>
                <tr>
                    <td>
                        解密情况
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddl">

                            <asp:ListItem Value="0">未解密企业</asp:ListItem>
                            <asp:ListItem Value="1">已解密企业</asp:ListItem>
                            <%--<asp:ListItem Value="2">已报完企业</asp:ListItem>--%>
                        </asp:DropDownList>
                    </td>
                    
                    <td>
                        投标企业名称
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCompanyName"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button runat="server" ID="btnQeury" Text="查询" OnClick="btnQeury_Click" />                     
                     <asp:Button runat="server" ID="btnNotBid" Text="导出报价未解密" Visible="false" OnClick="btnNotBid_Click" />
                        <asp:Button runat="server" ID="btnNotChe" Text="导出解密报价为0品规" Visible="false" OnClick="btnNotChe_Click" />
                    </td>
                    <td><asp:Button runat="server" ID="btnExport" Text="导出解密结果"  OnClick="btnExport_Click"  ToolTip="报价开关关闭后才能导出数据！"/>
                    </td>
                    <td>&nbsp;</td>
                    <td>
                       
                        <a href="ShowBidStatus.aspx?isdec=1" target="_blank">查看解密情况(大屏幕)</a>

                    </td>
                </tr>
            </table>
        </div>
        <div id="gridview" style="width: 100%">
            <HZ:HzPager runat="server" ID="pager1" ShowFirstLast="true" 
                onpagechanging="pager1_PageChanging" />
            <asp:GridView runat="server" ID="gv1" AutoGenerateColumns="false" Width="100%">
                <Columns>
                    <asp:BoundField HeaderText="企业编号" DataField="UserCode"    />
                    <asp:BoundField HeaderText="投标企业名称" DataField="CompanyName" />
                    <asp:TemplateField HeaderText="是否解密">
                   <ItemTemplate>
                   <asp:Label runat="server" ID="jm" Text='<%# Eval("DecStatus").ToString()=="True"?"已解密":"未解密" %>'></asp:Label>
                   </ItemTemplate>
                    </asp:TemplateField>
                     <asp:BoundField HeaderText="解密时间" DataField="DecTime" />
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
